/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-08-23
 * Time: 10:36
 */
public class Date {
    private int year;



    public int month;
    public int day;
    public Date(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
        System.out.println("3");
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public Date(int year) {
        this(2005,1006,16);
        this.year = year;
    }

    public void printDate(){
        System.out.println(this.year+","+this.month+","+this.day);
    }
}
